<?php
/**
 * 首页控制器
 * @author cjli
 *
 */
class EmptyAction extends HomeAction 
{
	public function _initialize()
	{
		parent::_initialize();
	}
    public function index()
    {
		$the_url = isset($_SERVER['REQUEST_URI']) ? strtolower($_SERVER['REQUEST_URI']) : '';
		if($the_url == '/wedding/index'){
			send_http_status(301);
			redirect(url('groupBuying/wedding').'/index');
			exit;
		}
		$where = array(
			'is_sell' => 1,
			'catid'=>2061,
		);
		$productList = ProductModel::get_product_list($where, 0, 20);
		$this->assign('productList', $productList);
    	send_http_status(404);
		$this->display(C('ERROR_PAGE'));
    	exit;
    }
	
}